package com.tuozixuan.demo;

import reactor.core.publisher.Flux;

import java.util.List;

public class ReactorBlockDemo {

    public static void main(String[] args) {
        String last = Flux.just("java", "python", "goloang").last().block();
        System.out.println(last);

        List<String> list = Flux.just("java", "python", "goloang").collectList().block();
        System.out.println(list);

    }
}
